package com.spt.springbootzhsx.service;

import com.spt.springbootzhsx.entity.Movie;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

public interface MovieService {
    ArrayList<Movie> getAllMovie();
    ArrayList<Movie> getMovieByMstate(String mstate);
    ArrayList<Movie> getTop5Movie();
    ArrayList<Movie> getTop7Movie();
    ArrayList<Movie> getMovieByMname(String mname);
    Movie getMovieByMid(Integer mid);
    ArrayList<Movie> getMovieByKeyAndMstate(String key,String mstate);
    ArrayList<Movie> getMovieByMtype(String mtype);
    String addMovie(Movie movie);
    String updateMovie(Movie movie);
    String deleteMovie(Integer mid);
    ArrayList<Movie> getMovieByIndex(Integer start,Integer num);
}
